<div class="modal-content">
  <div class="modal-header">
    <h4 class="modal-title" >用户单位</h4>
  </div>
  <div class="modal-body">
  	 <div style="height: 60px;text-align: right;">
  	 	<button ng-click="add()" class="btn btn-primary"><i class="iconfont icon-increase"></i>&nbsp;新增</button>
  	 	<button ng-click="update()" class="btn btn-warning"><i class="iconfont icon-update"></i>&nbsp;修改</button>
  	 	<button ng-click="delete()" class="btn btn-danger"><i class="iconfont icon-delete"></i>&nbsp;删除</button>
  	 </div>
     <table class="table table-hover table-bordered">
     	<thead>
     		<tr>
     			<th class="table-th-checkbox" ><input type="checkbox" ng-click="checkAll($event.target)" /></th>
     			<th>单位编号</th>
     			<th>单位名称</th>
     			<th>类型</th>
     		</tr>
     	</thead>
    	<tbody ng-switch on="page.current_num">
      	<tr ng-switch-when="0">
   		<td colspan="100" >查询无记录</td>
   		</tr>
        <tr ng-repeat="row in rows">
	      <td>
	      	<input type="checkbox" name="dataPk" value="{{row.id}},{{row.fk_user}}" ng-if="row.num == 0"/>
	      </td>
          <td>{{row.city_code}}</td>
          <td>{{row.name}}</td>
          <td ng-switch on="row.type">
          	<span ng-switch-when="1">工作单位</span>
          	<span ng-switch-when="2">人事单位</span>
          </td>
        </tr>
      </tbody>
    </table>
    <div ng-include="'plugin/frame/3.0.1/html/page.html'" class="div-page" ></div>
  </div>
</div>